sqlpackage.exe Azure export error started  few days ago

I was using this for a couple of months and suddenly since few days, I can't do it anymore

sqlpackage.exe /a:Export /ssn:xxxxxxx.database.windows.net /sdn:"xxx" /su:"xxx" /sp:"xxxxxxxxxxxxxx" /tf:"xxxxxx.bacpac"
Connecting to database 'xxxxx' on server 'xxxxxxx.database.windows.net'.

Extracting schema
Extracting schema from database

*** Error exporting database:Could not extract package from specified database. Unable to reconnect to database: Timeout expired.  The timeout period elapsed prior to completion of the operation or the server is not responding. Timeout expired.  The timeout period elapsed prior to completion of the operation or the server is not responding. The wait operation timed out




  • Edited by Alex71938 Monday, December 15, 2014 3:30 AM
December 15th, 2014 3:30am

I don't get it what is the point of your post? To tell me to retry?? I retried many times.

Next time write something meaningful. 

Also mods, please don't mark this as answer


  • Edited by Alex71938 Tuesday, December 16, 2014 2:52 AM
Free Windows Admin Tool Kit Click here and download it now
December 16th, 2014 2:25am

I have sqlpackage.exe timeouts out of the blue only on one server. How to diagnose it?

"C:\Program Files (x86)\Microsoft SQL Server\110\DAC\bin\sqlpackage.exe" /a:Export /ssn:xxxxxx.database.windows.net /sdn:"xxxxxx" /su:"xxxx" /sp:"xxxxxxxxxx" /tf:"xxxxxx.bacpac"

December 17th, 2014 2:08am

Alex,

Thanks for contacting Forum support. In the above response by Mekh, he has suggested to open a support ticket for a specific reason

1. SQLPackage.exe doesn't have it's own logging.

2. However if you open a support ticket, we will be able to sql database gateway logs and SQL performance logs which could have an impact on the SQLPackage.exe.

This post might seem repetitive but it's because of the fact that, the error message is  "Could not extract package from specified database. Unable to reconnect to database: Timeout expired." This could mean many things which Mekh has been discussing with you throughout the post.

One quick question here:

1. What is the frequency of this failing using SQLPackage.exe? (If I remember correctly, this tool is working fine with many other databases. have you tried and found out what is the outstanding change of this DB when compared to other DBs?)

2. When the SQLPackage.exe failed, how was the database performance? Was it over-loaded?

3. Was there any outages at that time? (http://www.windowsazure.com/en-us/support/service-dashboard/)

4. Sometimes, the Dashboard doesn't list all the outages if the impact is not huge in which cases, opening a support ticket helps. The support team contacts the Operations team (who manage the data-center machines) and if required, they involve the Product Group developers in extreme situations.

5. This is a repetition; the SQLPackage.exe import/export of bacpac/dacpac doesn't have a 'Operation ID'. That means, we cannot trace the failure to check why there was a Timeout/connection issue/performance issue/queue length issue etc.

Again, SQLPackage.exe is not the only tool out there. We strongly recommend you to use tools like Export, Automated exports etc.

With the new SQL Azure DB announcements, you actually don't even need to make a copy of the database using SQLPackage.exe. You can use the Geo-restore/Deleted databases/Restore feature in case of disasters (/Oops delete). For a new service tier database (Basic/Standard/Premium), we internally maintain backups and in case you need to restore the database, you can use the 'Restore' functionality to restore the database to a point 7 days (Basic tier), 15 days (Standard) and up to 35 days (Premium tier). This very feature itself solves your very problem of performing an export using SQLPackage.exe. (http://azure.microsoft.com/blog/2014/09/13/azure-sql-database-geo-restore/)

Said that, if you open a support incident, the team will be able to talk to you over the phone and spend good amount of time, have a screen-sharing session, having 1:1 follow-ups, escalation routes etc.

I hope this reply helps you and I hope you will be able to make better business decisions with tools such as SQLPackage.exe itself.

-Karthik (KKB)

Free Windows Admin Tool Kit Click here and download it now
December 18th, 2014 6:58am

Wow 

it was because i had Standard for SQL database tier

I think MS should address this bug

  • Marked as answer by Alex71938 Wednesday, December 24, 2014 8:33 AM
December 21st, 2014 1:13am

I encountered the same Problem when switching from SQL Service Tier 'Web' (retired) to the new Tier 'Basic'. With 'Basic' sqlpackage.exe hangs after line 'Extracting schema from database'.

Switching to Service Tier 'Standard' made the difference for me: Still, sqlpackage pauses some time in this state, but after a while it continues and manages to complete the DB export successfully.

I think, it's a bug Microsoft should fix because by flagging 'Web' as 'retired' they are putting pressure on people to switch from a working commandline solution and eventually start with some try and error loops which should not be necessary. To be clear: My only reason to run with Tier 'Standard' which costs double the prize of 'Basic' is because of this issue with sqlpackage...

Free Windows Admin Tool Kit Click here and download it now
May 7th, 2015 2:14pm

Use Azure CmdLets instead of sqlpackage.exe to export / import Azure SQL databases.

Start-AzureSqlDatabaseExport and Start-AzureSqlDatabaseImport do a great job. Fast export and import Azure SQL DBs using Azure storage for backup media. You can also define the database edition, i.e. the SQL service tier. Back in game.

My installed version of the Azure SDK: 2.6

Thanx Microsoft :)


July 29th, 2015 10:05am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics